  <div class="detaiTab detaiTab1 m10">
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>审核内容
		</h3>
        <div class="detaiTab" >
        	     <form id="zx_form" action="<@url value='/rafterloancheck/save_checkData'/>"  method="POST" class="action-ajax-form">
        	     	<input type="hidden" name="id" value="${vo.id}" />
        	     	<input type="hidden" name="revisiterId" value="${vo.revisiterId}" />
			        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="b_t_e5">
			           <tbody>
			             <tr>
	                    	<td align="right" class="bg" width="10%">贷款次数<span style="color: red;">*</span>:</td>
	                      	<td  >
	                      		<input type="text" value="${vo.loanNumber}" class="inputNum" disabled="disabled">
	                      		<input type="hidden" name="loanNumber" value="${vo.loanNumber}">
	                      	</td>
	                        <td align="right" class="bg" width="10%">贷前年销售额<span style="color: red;">*</span>:</td>
	                        <td  ><input type="text" name="yearlySale" value="${vo.yearlySale}" class="inputNum">&nbsp;&nbsp;元</td>
	                        <td align="right" class="bg" width="10%">贷前存货金额<span style="color: red;">*</span>:</td>
	                      	<td  >
	                      		<input type="text" value="${vo.stockMoney}" width="30px" class="inputNum" disabled="disabled"/>&nbsp;&nbsp;元
	                      		<input type="hidden" name="stockMoney" value="${vo.stockMoney}" />
	                      	</td>
	                    </tr>
	                	<tr>
							<td align="right" class="bg" width="15%">回访人<span style="color: red;">*</span>:</td>
	                      	<td ><input type="text" name="revisiterName" value="${vo.revisiterName}"></td>	 
	                      	<td align="right" class="bg" width="15%">应收账款余额<span style="color: red;">*</span>:</td>
	                      	<td><input type="text" name="balancesReceivable" id="balancesReceivable" value="${vo.balancesReceivable}" class="inputNum">&nbsp;&nbsp;元</td> 
	                      	<td align="right" class="bg" width="15%">月均销售额<span style="color: red;">*</span>:</td>
	                      	<td><input type="text" name="monthlySale" id="monthlySale" value="${vo.monthlySale}" class="inputNum">&nbsp;&nbsp;元</td>	                      	
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">向核心企业月采购额<span style="color: red;">*</span>:</td>
	                      	<td><input type="text" name="monthlyPurchases" id="monthlyPurchases" value="${vo.monthlyPurchases}" class="inputNum">&nbsp;&nbsp;元</td>
	                      	<td align="right" class="bg" width="15%">新增负债额<span style="color: red;">*</span>:</td>
	                      	<td><input type="text" name="newDebt" value="${vo.newDebt}" id="newDebt" class="inputNum">&nbsp;&nbsp;元</td>
	                      	<td align="right" class="bg" width="15%">回访日期<span style="color: red;">*</span>:</td>
	                      	<td ><@date name="revisitDate"  class="tabInp" value="${vo.revisitDate}"/></td>   
	                    </tr>

	                    <tr>
	                      	<td align="right" class="bg" width="15%">回访形式<span style="color: red;">*</span>:</td>
	                      	<td ><select name="revisitForm"><option value="PERSON_VISIT">上门回访</select></td>
	                      	<td align="right" class="bg" width="15%">经营环境变化<span style="color: red;">*</span>:</td>
	                      	<td><@select type="select" dataSouceType="YW" class="tabInp" name="isEnvironmentChanges" value="${vo.isEnvironmentChanges}" /></td>
	                      	<td align="right" class="bg" width="15%">经营场地变化<span style="color: red;">*</span>:</td>
	                      	<td><@select type="select" dataSouceType="YW" class="tabInp" name="isPlaceChanges" value="${vo.isPlaceChanges}" /></td>
	                    </tr>	   
	                    <tr>
	                    	<td align="right" class="bg" width="15%">经营人员变化<span style="color: red;">*</span>:</td>
	                      	<td><@select type="select" dataSouceType="YW" class="tabInp" name="isStaffChanges" value="${vo.isStaffChanges}" /></td>
	                      	<td align="right" class="bg" width="15%">存货超出有效期<span style="color: red;">*</span>:</td>
	                      	<td><@select type="select" dataSouceType="YW" class="tabInp" name="isOutTime" value="${vo.isOutTime}" /></td>
	                      	<td align="right" class="bg" width="15%">家庭发生变化<span style="color: red;">*</span>:</td>
	                      	<td><@select type="select" dataSouceType="YW" class="tabInp" name="isFamilyChange" value="${vo.isFamilyChange}" /></td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">贷后检查内容描述<span style="color: red;">*</span>:</td>
	                    	<td colspan="5">
	                    		<textarea name="checkDes" cols="50" rows="5" placeholder="输入字数限500字">${vo.checkDes}</textarea>
	                    	</td>
	                    </tr>    
	                    <#if isSave??>	      	 
				            <tr> 
			                    <td align="center" colspan="6">
			                   		 <input type="submit" value="保存"  class="btn_auto_30 btn_blue"/>
			                    </td>
			                </tr>       
		                </#if>
		             </tbody>
	   			 </table> 
	   			  <#if isSave??>
	   			 		<div class="openBox action-ajax-load" data-url="<@url value='/rafterloancheck/loadfile?id=${vo.id}&isSave=1&loanId=${vo.loanId}'/>"></div>
	   			  <#else>
	   			  		<div class="openBox action-ajax-load" data-url="<@url value='/rafterloancheck/loadfile?id=${vo.id}&isSave=2&loanId=${vo.loanId}'/>"></div>
	   			  </#if>	    
	   			 <input id="showSaveBtn" type="hidden" value="${isSave}"/>
	  		  </form>
        </div>
    </div>
 </div>
 <script>
	if(!$('#showSaveBtn').val()){
		$('#zx_form input').attr('disabled','disabled');
		$('#zx_form select').attr('disabled','disabled');
		$('#zx_form textarea').attr('disabled','disabled');
	}
	
	$("form").submit(function(e){
	  return validate();
	});
	
	function validate() {
 		var flRe = /^[0-9]+([.]{1}[0-9]+){0,1}$/;
 		
 		var balancesReceivable = $("#balancesReceivable").val();
 		if (!flRe.test(registeredCapital)) {
 			$.actionDialog({
					message : "应收账款余额格式错误"
			});
 			return false;
 		}
 		var monthlySale = $("#monthlySale").val();
 		if (!flRe.test(monthlySale)) {
 			$.actionDialog({
					message : "月均销售额格式错误"
			});
 			return false;
 		}
 		
 		var monthlyPurchases = $("#monthlyPurchases").val();
 		if (!flRe.test(monthlyPurchases)) {
   			$.actionDialog({
					message : "向核心企业月采购额格式错误"
			});
 			return false;		
 		}
 		
 		var newDebt = $("#newDebt").val();
 		if (!flRe.test(newDebt)) {
   			$.actionDialog({
					message : "新增负债额格式错误"
			});
 			return false;		
 		}
 		return true;
 	}
	
</script>
 
 
 
 
 
 
